<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light_inline.css" rel="stylesheet">
<%-- <link href="${ctx}/resources/css/zui/zui.min.css" rel="stylesheet" />
<link href="${ctx}/resources/css/zui/zui-theme.min.css" rel="stylesheet" /> --%>
<style type="text/css">
@media ( max-width : 767px) {
	[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]
		{
		width: 49%;
		float: left;
		margin-right: 7px;
	}
}
</style>
<title>欢迎</title>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
		<form action="${ctx }/bank/modify.jhtml" class="form-horizontal">
		 ${error }
		 	<div>${bank.id }</div>
			<input type="hidden" name="id" class="span4" value="${bank.id }"/><br>

				<div class="control-group">
					<label class="control-label">银行名称：</label>
					<div class="controls">
						<input class="span6 m-wrap" type="text"  
							value="${bank.bankName }" name="bankName" > <span
							class="help-inline"></span>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label">银行帐号：</label>
					<div class="controls">
						<input class="span6 m-wrap" type="text"  
							value="${bank.bankCode }" name="bankCode" > <span
							class="help-inline"></span>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label">账户余额：</label>
					<div class="controls">
						<input class="span6 m-wrap" type="text"
							value="${bank.bankBalance }" name="bankBalance" > <span
							class="help-inline"></span>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label">账户类型：</label>
					<div class="controls">
						<input class="span6 m-wrap" type="text"  
							value="${bank.bankType }" name="bankType" > <span
							class="help-inline"></span>
					</div>
				</div>
				
				<div class="control-group">
					<label class="control-label">账户备注：</label>
					<div class="controls">
						<input class="span6 m-wrap" type="text"  
							value="${bank.bankRemarks }" name="bankRemarks" > <span
							class="help-inline"></span>
					</div>
				</div>

				<div class="control-group">
					<label class="control-label">所属机构：</label>
					<div class="controls">
					<select	name="organId" class="span6 m-wrap" >
							<c:forEach var="organ" items="${organ }">
								<option value="${organ.id }"
									<c:if test="${bank.organId eq organ.id }">selected</c:if>>${organ.name }</option>
							</c:forEach>
					</select><span class="help-inline"></span>
					</div>
				</div>
				<div class="form-actions">
					<input type="submit" value="保存" class="btn blue" /> <a
						href="${ctx }/bank/list.jhtml" class="btn">返回</a>
				</div></div>
			
			</form>
		</div>
	</div>
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<script type="text/javascript">
	var forword = function(obj) {
		if (obj == 1) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='applyArticle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 2) {
			var $a = $(window.parent.document).find(
					".page-sidebar > ul > li > ul > li > a[href$='exp']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 3) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='managetSubject']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 4) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='articleRecycle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		}
	}
	var text = function(obj) {
		$(window.parent.document).find(".page-sidebar > ul > li").removeClass(
				'active');
		$(window.parent.document).find(
				".page-sidebar > ul > li > a > span[class='title']").each(
				function(i) {
					var text = $(this).text();
					if (text == obj) {
						$(this).parent().parent().addClass('open active');
						$(this).after('<span class="selected"></span>')
					}
				});
	}
</script>
</html>